package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_dynamic;
import cn.com.api.entity.ApiU_dynamic_reply;
import cn.com.api.service.base.U_dynamicServiceBase;
import cn.com.util.PageInfo;

/**
 * 
 */
@Service
public interface ApiU_dynamicService extends U_dynamicServiceBase {

	// 新增对象后返回记录ID
	public int U_dynamicInsertion(ApiU_dynamic u_dynamic);

	// 查询信息By user_id
	public List<ApiU_dynamic> findDynamicInfoByUser_id(Map param, PageInfo pageInfo);

	// 查询信息(我的朋友圈，包含回复内容)
	public List<ApiU_dynamic> findDynamicInfo(String user_id, PageInfo pageInfo);

	// 回复动态
	public Integer reply_Dynamic(ApiU_dynamic_reply dynamic_reply);

	public Map<String, Object> findDynamicInfoByUser_id(String user_id, String touser_id, PageInfo page)
			throws Exception;
}
